﻿
#region Usings

using System;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using ScrumTable.UI.View.Controls;
using ScrumTable.UI.ViewModel;

#endregion

namespace ScrumTable.UI.View.Extension
{

    /// <summary>
    /// Class implementing helpful extensions to DropUserControl.
    /// </summary>
    public static class DropUserControlExtension
    {
        
        public static CanDropResult ConvertBoolToEnum(this IDropUserControl dropControl, bool value)
        {
            return value ? CanDropResult.CanDrop : CanDropResult.None;
        }

        public static CanDropResult ConvertBoolToEnum(bool value)
        {
            return ConvertBoolToEnum(null, value);
        }
    }
}
